00001 <?php 00002 /*--------------------------------------------------------------------------+ 00003 This file is part of eStudy. 00004 messaging/buddymangement.php 00005 - Modulgruppe: Messaging 00006 - Beschreibung: Uebersicht der Buddylist-Funktionen und Statistik ueber 00007 eigene Buddies. 00008 - Version: 0.2, 21.01.2009 00009 - Autor(en): 00010 Alexander Rausch <alexander.rausch@mni.fh-giessen.de> [Refactoring WS 08/09], 00011 Waldemar Krampetz <waldemar.krampetz@mni.fh-giessen.de>, 00012 Dennis Bayer <dennis.bayer@mni.fh-giessen.de><bayer.d@gmx.de> 00013 +---------------------------------------------------------------------------+ 00014 This program is free software; you can redistribute it and/or 00015 modify it under the terms of the GNU General Public License 00016 as published by the Free Software Foundation; either version 2 00017 of the License, or any later version. 00018 +---------------------------------------------------------------------------+ 00019 This program is distributed in the hope that it will be useful, 00020 but WITHOUT ANY WARRANTY; without even the implied warranty of 00021 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00022 GNU General Public License for more details. 00023 You should have received a copy of the GNU General Public License 00024 along with this program; if not, write to the Free Software 00025 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00026 +--------------------------------------------------------------------------*/ 00038 define("PATH_TO_ROOT", "../"); 00040 require_once (PATH_TO_ROOT."messaging/classes/class.messaging.inc.php"); 00041 /* CSS einbinden */ 00042 Messaging::includeMessagingCSSFile(); 00043 /* globale Defines setzten */ 00044 Messaging::setGlobalVariables(); 00045 00047 require_once (PATH_TO_ROOT."common/init.inc.php"); 00049 require_once (PATH_TO_ROOT."common/header.inc.php"); 00051 require_once (PATH_TO_ROOT."messaging/classes/class.buddylist.inc.php"); 00053 require_once (PATH_TO_ROOT."messaging/classes/class.messaging_usersearch.inc.php"); 00054 00055 if (empty($_POST)) $_POST["asEmail"] = 1; 00056 00057 //Javascript Includes 00058 echo Messaging::getAutoSearchJavaScript(); 00059 ?> 00060 <div class="messaging_mainbox"> 00061 <?php 00062 //Buddylist::echoBuddyManagement(); 00063 $buddylist = new Buddylist($_SESSION["userid"]); 00064 $buddylist->echoBuddyManagement(); 00065 00066 /* Generelle Messaging Helper Klasse initalisieren */ 00067 $messaging = new Messaging($_SESSION["userid"]); 00068 $messaging_usersearch = new MessagingUserSearch($messaging); 00069 00070 /* Suchformular ausgeben */ 00071 $messaging_usersearch->echoSearchForm(true); 00072 /* 00073 * DIV für Suchergebnisse 00074 */ 00075 echo "<div id='messagingSearchResults'>"; 00076 if(isset($_POST["searchAction"]) && !isset($_GET['forename'])) { 00077 $messaging_usersearch->setSearchName($_POST["searchName"]); 00078 $messaging_usersearch->setSearchForeName($_POST["searchForename"]); 00079 $messaging_usersearch->setSearchCourse($_POST["searchCourse"]); 00080 $messaging_usersearch->echoSearchResults(); 00081 } 00082 echo "</div>"; 00083 ?> 00084 </div> 00085 <div> 00086 <?php 00087 /* Buddyliste anzeigen */ 00088 $buddylist->echoBuddylist(); 00089 ?> 00090 </div> 00091 <?php 00093 require_once (PATH_TO_ROOT."common/footer.inc.php"); 00094 ?>
1.6.1